package com.link2room.enums.exception;

import com.link2room.common.constant.BaseConstant;
import com.link2room.common.enums.DefaultSysExceptionInterface;

/**
 * Created by sss on 2016/8/11.
 */
public enum BlasterSysExceptionEnum implements DefaultSysExceptionInterface {
    /****BLASTER**********BLASTER********************BLASTER**********BLASTER****/
    NO_TEMPLATE(1301,"no TEMPLATE ,检查表msg_template", BaseConstant.SysExceptionConstant.BIZ_TYPE.BLASTER),
    NO_OFFICIALACCOUNTSTOKEN(1302,"微信公众号token获取失败", BaseConstant.SysExceptionConstant.BIZ_TYPE.BLASTER),
    NO_DAYU_OPT(1303,"没有配置大于option", BaseConstant.SysExceptionConstant.BIZ_TYPE.BLASTER),
    VERIFICATIONCODE_OVERDUE(1304,"验证码过期", BaseConstant.SysExceptionConstant.BIZ_TYPE.BLASTER),
    VERIFICATIONCODE_ERROR(1305,"验证码不正确,请重新输入", BaseConstant.SysExceptionConstant.BIZ_TYPE.BLASTER),
    DAYU_SDK_ERROR(1306,"sdk_error", BaseConstant.SysExceptionConstant.BIZ_TYPE.BLASTER),
    INMAIL_TYPE_ERROR(1307,"inmail_type_error", BaseConstant.SysExceptionConstant.BIZ_TYPE.BLASTER),
    CREATE_INMAIL_TERROR(1308,"create_inmail_terror", BaseConstant.SysExceptionConstant.BIZ_TYPE.BLASTER),
    ;

    private BlasterSysExceptionEnum(int code, String msg, String bizType){
        this.code=code;
        this.msg=msg;
        this.bizType=bizType;
    }

    private int code;

    private String msg;

    private String bizType;

    @Override
    public int getCode() {
        return code;
    }
    @Override
    public void setCode(int code) {
        this.code = code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }
    @Override
    public String getBizType() {
        return bizType;
    }
    @Override
    public void setBizType(String bizType) {
        this.bizType = bizType;
    }
}
